import { ApiProperty, PartialType } from '@nestjs/swagger';
import { ResFailDto } from 'src/tag/dto/base.dto';
import { ResSuccessDto } from './base.dto';

export class CreateClockReqDto {
  @ApiProperty({
    required: true,
  })
  name: string;

  @ApiProperty({
    required: true,
  })
  tags: Array<string>;

  @ApiProperty({
    type: Number,
    description: '5-90分钟',
    default: 30,
  })
  target: number;
}

export class CreateClockResSuccessDto extends PartialType(ResSuccessDto) {
  @ApiProperty({
    required: true,
  })
  id: string;
}

export class CreateClockResFailDto extends PartialType(ResFailDto) {}
